
<div class="wrapMain">
	<div id="row">
		    <div class="col-md-8"> 
    
        <!-- START TRUYEN DE CU -->
        <div class="panel panel-info">
 			<div class="panel-heading">
         		<ul class="mn_nav">
	            	<li><a href="" class="active">Truyện Đề Cử</a></li>
	                <li class="pull-right">
	                	<a href="#" class="btn btn-primary btn-slider" id="decu-btn-slider-prev" data-rel="decu"> 
	                		<span class="glyphicon glyphicon-arrow-left"> </span>
	                	</a> 
	                	<a href="#" class="btn btn-primary btn-slider" id="decu-btn-slider-next" data-rel="decu"> 
	                		<span class="glyphicon glyphicon-arrow-right"> </span>
	                	</a>
	                	
	                	<input type="hidden" id="decu-slider-total-page" name="decu-slider-total-page" value="<?= $data['decu_pages']; ?>" />
	                	<input type="hidden" id="decu-slider-current-page" name="decu-slider-current-page" value="1" />
	                </li>
	            </ul>
	            <div class="clearfix"></div>
        	</div>
  		<div class="panel-body" id="decu-wrapper" data-href="1">
  			<div class="wrap-loading" id="wrap-decu-loading" style="display: none;">
				<div class="loading" id="decu-loading"><img alt="loading" src="public/images/loading11.gif"></div><br>
			</div>
  			<div id="decu-content-slide-1" class="decu-content">
          		<?php render_item_truyen($data['decu'],1); ?>
          	</div>
  		</div> <!-- End of panel body -->
		</div> <!-- End of panel -->

        <!-- End truyen de cu -->
        <div class="panel panel-success">
 		 <div class="panel-heading">
         		<ul class="mn_nav">
            	<li><a href="<?php echo url() ?>#" class="active">Truyện Mới</a></li>
                  <?php 
					  foreach($data['category']['truyen'] as $row){
					  ?>
                <li><a href="<?php echo url_truyen_theloai($row['id'],$row['alias']) ?>"><?php echo $row['ten'] ?></a></li>
                <?php }?>
              
                <li class="pull-right"><a href="<?php echo HOME ?>truyen">Xem Thêm <span class="glyphicon glyphicon-arrow-right"> </span></a></li>
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body">
  			
             	<?php render_item_truyen($data['truyenmoi'],1); ?>
  
  
  		</div> <!-- End of panel body -->
		</div> <!-- End of panel -->

      
        
          <div class="panel panel-info">
 		 <div class="panel-heading">
         		<ul class="mn_nav">
                <li><span class="head">Video</span></li>
            	<li><a href="<?php echo HOME ?>" class="active">Mới</a></li>
                 <?php 
					  foreach($data['category']['video'] as $row){
					  ?>
                      <li><a href="<?php echo url_category($row['id'],$row['alias'],'video') ?>"><?php echo $row['name']?></a></li>
                      <?php }?>
                 <li class="pull-right"><a href="<?php echo HOME ?>video">Xem Thêm <span class="glyphicon glyphicon-arrow-right"> </span></a></li>
                
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body video_box">
        <?php  
		 render_item_video($data['video']); ?>
		 
        	
  		</div>
		</div>
        
        
          <div class="panel panel-default">
 		 <div class="panel-heading">
         		<ul class="mn_nav">
                <li><span class="head">BLOG</span></li>
            	<li><a href="<?php echo HOME ?>" class="active">Mới</a></li>
              	  <?php 
					  foreach($data['category']['blog'] as $row){
					  ?>
                      <li><a href="<?php echo url_category($row['id'],$row['alias'],'blog') ?>"><?php echo $row['name']?></a></li>
                      <?php }?>
                
                  <li class="pull-right"><a href="<?php echo HOME ?>blog">Xem Thêm <span class="glyphicon glyphicon-arrow-right"> </span></a></li>
                
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body blog_box">
     
        	<?php  
		
		 render_item_blog($data['blog']); ?>
           
            
      
        
        
        	
   
  		</div>
		</div>
        
        
                
  
  		<div class="row">
        	<div class="col-md-6">
            
              <div class="panel panel-default">
 		 <div class="panel-heading">
         		<ul class="mn_nav">
            	<li><a href="" class="active">Chém gió thành bão</a></li>
                
                
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body">
   	  <div class="fb-comments" id="fb-comment" data-post-id="0" data-href="http://dongcam.vn/" data-width="300" data-num-posts="5" data-order-by="reverse_time"></div>
  		</div>
		</div>
        
            </div><!-- End col-md-6 -->
            <div class="col-md-6">
               <div class="panel panel-default">
 		 <div class="panel-heading">
         		<ul class="mn_nav">
            	<li><a href="" class="active">Mới Thảo Luận</a></li>
                
                
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body">
   	 
     
     	</div>
		</div>
        
            </div><!-- End col-md-6 -->
        </div> <!-- End of row -->
        
  
        

<?php
		//POST RENDER GRID VIEW DATA
		
		
		$page = (isset($_GET['page']) && $_GET['page'] != '') ? $_GET['page'] : 1;
		//post_render_grid($data['info'], null, null, $page);
		$max_page = $data['page'];

?>
		


</div> <!-- COL MD 9 -->
  
                    <div class="col-md-4">
  	<!-- START Render TRUYEN category -->	<?php truyen_render_theloai(); ?>	
     	<!-- START Render TRUYEN View -->	<?php truyen_render_view(); ?>	
<!-- START pick blog video -->				<?php render_pick(); ?><!--End pick blog video -->
<!-- START RENDER video comment --> 		<?php video_render_view() ?> <!-- End RENDER video comment --> 
 <!-- START RENDER video Xem Nhieu -->      <?php blog_render_view(); ?>   <!-- end video xem nhieu -->
                	</div> <!-- End col -md -4 right -->
                    
                    </div> <!-- End of Row -->
                    </div>
                    <div class="clearfix"></div>
                    

